﻿<%@ Page Language="C#" MasterPageFile="~/MMhome.Master" AutoEventWireup="true" CodeBehind="RTsimnew.aspx.cs"
    Inherits="MobileManager.RTsimnew" Title="SIM新增率" %>

<%@ Register Src="~/UserControl/RTMenu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script language="javascript" type="text/javascript" src="Js/UCcalendar/WdatePicker.js"></script>

    <style type="text/css">
        .divLeft
        {
            width: 165px;
            list-style: none;
            margin-left: 10px;
            margin-right: 5px;
            margin-top: 20px;
            float: left;
        }
        .divRight
        {
            float: left;
            margin-top: 10px;
            margin-right: 10px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <div style="width: 100%">
        <div class="divLeft">
            <uc1:Menu ID="uc1menu" runat="server" />
        </div>
        <div class="divRight" style="text-align: center;">
            <table>
                <tr>
                    <td style="text-align: right;">
                        客户编号：
                    </td>
                    <td style="text-align: left;">
                        <asp:DropDownList ID="ddlCustomer" runat="server" CssClass="dropnormal">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: right;">
                        运营商编号：
                    </td>
                    <td style="text-align: left">
                        <asp:DropDownList ID="ddlODEP" runat="server" CssClass="dropnormal">
                        </asp:DropDownList>
                    </td>
                    <td style="text-align: right;">
                        时间From：
                    </td>
                    <td style="text-align: left;">
                        <input class="Wdate" id="inputDateFrom" name="inputDateStart" runat="server" type="text"
                            onclick="WdatePicker()" />
                    </td>
                    <td style="text-align: right;">
                        To：
                    </td>
                    <td style="text-align: left;">
                        <input class="Wdate" id="inputDateTo" name="inputDateStart" runat="server" type="text"
                            onclick="WdatePicker()" />
                    </td>
                </tr>
                <tr>
                    <td colspan="8" align="center">
                        <asp:DropDownList ID="ddlOrder" runat="server">
                            <asp:ListItem Value="1" Text="新增率" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="2" Text="IMSI总数"></asp:ListItem>
                            <asp:ListItem Value="3" Text="IMSI新增数"></asp:ListItem>
                        </asp:DropDownList>
                        <asp:DropDownList ID="ddlAD" runat="server">
                            <asp:ListItem Value="ASC" Text="升序"></asp:ListItem>
                            <asp:ListItem Value="DESC" Text="降序" Selected="True"></asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;&nbsp;
                        <asp:Button ID="btnQuery" runat="server" Text="查 询" CssClass="button_green" Width="70px"
                            OnClick="btnQuery_Click" />
                        &nbsp;&nbsp;&nbsp;
                        <asp:Button ID="btnQueryAll" runat="server" Text="全部显示" CssClass="button_green" Width="70px"
                            OnClick="btnQueryAll_Click" />
                            &nbsp;&nbsp;&nbsp;
                            当前累计IMSI总数：<asp:Label ID="lbIMSIall" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
            <br />
            <div>
                <table style="width: 100%;">
                    <tr>
                        <td align="left">
                            <asp:Label ID="lbCount" runat="server"></asp:Label>
                        </td>
                        <td align="center">
                            <asp:Label ID="lbNewNum" runat="server"></asp:Label>
                        </td>
                        <td align="center">
                            <asp:Label ID="lbAllNum" runat="server"></asp:Label>
                        </td>
                        <td align="center">
                            <asp:Label ID="lbRnumAll" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:GridView ID="GVinfo" runat="server" AutoGenerateColumns="False" CssClass="reason_box"
                Font-Size="12px" CellPadding="0" BorderWidth="0px" BorderColor="#A6E1FF" Width="100%"
                AllowPaging="True" OnPageIndexChanging="GVinfo_PageIndexChanging" PageSize="30"
                OnRowDataBound="GVinfo_RowDataBound">
                <Columns>
                    <asp:TemplateField HeaderText="客户编号">
                        <ItemTemplate>
                            <asp:Label ID="lbCNO" runat="server" Text='<%# Bind("CNO") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IMSI新增数">
                        <ItemTemplate>
                            <asp:Label ID="lbNewNum" runat="server" Text='<%# Bind("NewNum") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="IMSI总数(To日期前)">
                        <ItemTemplate>
                            <asp:Label ID="lbAllRum" runat="server" Text='<%# Bind("AllNum") %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="新增率">
                        <ItemTemplate>
                            <asp:Label ID="lbRate" runat="server" Text='<%# CVrate(Eval("Rate").ToString()) %>'></asp:Label>
                        </ItemTemplate>
                        <HeaderStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                        <ItemStyle BorderColor="#4DA6FF" BorderWidth="1px" />
                    </asp:TemplateField>
                </Columns>
                <EmptyDataTemplate>
                    <span style="color: Red; font-weight: bold;">无数据显示</span>
                </EmptyDataTemplate>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
